import { WeaTools } from 'ecCom'

//查询
export const doSearch = (params) => {
	return WeaTools.callApi('/api/customization/qc574527/manuallyDispatch/getData', 'GET', params);
};

// 高级搜索
export const getConditionInfo = (params) => {
	return WeaTools.callApi('/api/customization/qc574527/manuallyDispatch/condition', 'GET', params);
};

//页面右键
export const getRightMenu = (params) => {
	return WeaTools.callApi('/api/customization/qc574527/manuallyDispatch/rightMenu', 'GET', params);
};

//根据传入的弹出框类型获取对应的按钮和字段
export const getchooseDialogCon = (params) => {
	return WeaTools.callApi('/api/customization/qc574527/manuallyDispatch/chooseDialog', 'post', params);
};


//提交派工
export const onSubmit = (params) => {
	return WeaTools.callApi('/api/customization/qc574527/manuallyDispatch/onSubmit', 'GET', params);
}

//抢单
export const grabSingle = (params) => {
	return WeaTools.callApi('/api/customization/qc574527/manuallyDispatch/grabSingle', 'GET', params);
}